package com.manage.function.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.manage.common.annotation.Excel;
import com.manage.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 薪资信息对象 function_salary
 *
 * @author jinghj
 * @date 2025-03-09
 */
@ApiModel(value = "FunctionSalary", description = "薪资信息对象 function_salary 的详细信息")
public class FunctionSalary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     *
     */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * $column.columnComment
     *
     */
    @ApiModelProperty(value = "$column.columnComment")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /**
     * $column.columnComment
     *
     */
    @ApiModelProperty(value = "$column.columnComment")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long deptId;

    /**
     * 薪资金额，非空
     *
     */
    @ApiModelProperty(value = "薪资金额，非空")
    @Excel(name = "薪资金额，非空")
    private BigDecimal amount;

    /**
     * 发放月份，非空
     *
     */
    @ApiModelProperty(value = "发放月份，非空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发放月份，非空", width = 30, dateFormat = "yyyy-MM-dd")
    private Date month;

    /**
     * 创建时间，默认当前时间
     *
     */
    @ApiModelProperty(value = "创建时间，默认当前时间")
    private Date createdAt;

    /**
     * 更新时间，默认当前时间且自动更新
     *
     */
    @ApiModelProperty(value = "更新时间，默认当前时间且自动更新")
    private Date updatedAt;


    private String userName;
    private String deptName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    /**
     * 设置 id 的值
     * @param id id 的值
     */
    public void setId(Long id)
    {
        this.id = id;
    }

    /**
     * 获取 id 的值
     * @return id 的值
     */
    public Long getId()
    {
        return id;
    }
    /**
     * 设置 userId 的值
     * @param userId userId 的值
     */
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    /**
     * 获取 userId 的值
     * @return userId 的值
     */
    public Long getUserId()
    {
        return userId;
    }
    /**
     * 设置 deptId 的值
     * @param deptId deptId 的值
     */
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    /**
     * 获取 deptId 的值
     * @return deptId 的值
     */
    public Long getDeptId()
    {
        return deptId;
    }
    /**
     * 设置 amount 的值
     * @param amount amount 的值
     */
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    /**
     * 获取 amount 的值
     * @return amount 的值
     */
    public BigDecimal getAmount()
    {
        return amount;
    }
    /**
     * 设置 month 的值
     * @param month month 的值
     */
    public void setMonth(Date month)
    {
        this.month = month;
    }

    /**
     * 获取 month 的值
     * @return month 的值
     */
    public Date getMonth()
    {
        return month;
    }
    /**
     * 设置 createdAt 的值
     * @param createdAt createdAt 的值
     */
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    /**
     * 获取 createdAt 的值
     * @return createdAt 的值
     */
    public Date getCreatedAt()
    {
        return createdAt;
    }
    /**
     * 设置 updatedAt 的值
     * @param updatedAt updatedAt 的值
     */
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    /**
     * 获取 updatedAt 的值
     * @return updatedAt 的值
     */
    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("amount", getAmount())
                .append("month", getMonth())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("remark", getRemark())
                .append("userName",getUserName())
                .append("deptName",getDeptName())
                .toString();
    }
}
